Optimal. Leaf size=7 \[ \tanh ^{-1}(\sin (x))-x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {4392, 2839, 3770, 8} \[ \tanh ^{-1}(\sin (x))-x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2839
Rule 3770
Rule 4392
Rubi steps
\begin {align*} \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx &=\int \frac {\sin (x) \tan (x)}{1+\cos (x)} \, dx\\ &=-\int 1 \, dx+\int \sec (x) \, dx\\ &=-x+\tanh ^{-1}(\sin (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 36, normalized size = 5.14 \[ -x-\log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+\log \left (\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.71, size = 20, normalized size = 2.86 \[ -x + \frac {1}{2} \, \log \left (\sin \relax (x) + 1\right ) - \frac {1}{2} \, \log \left (-\sin \relax (x) + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.22, size = 22, normalized size = 3.14 \[ -x + \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) + 1 \right |}\right ) - \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.11, size = 21, normalized size = 3.00 \[ -\ln \left (\tan \left (\frac {x}{2}\right )-1\right )+\ln \left (\tan \left (\frac {x}{2}\right )+1\right )-x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.43, size = 39, normalized size = 5.57 \[ -2 \, \arctan \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1}\right ) + \log \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1} + 1\right ) - \log \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.57, size = 11, normalized size = 1.57 \[ 2\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {x}{2}\right )\right )-x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan {\relax (x )}}{\cot {\relax (x )} + \csc {\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________